*------------------------------------------------------------------------------*
* Family history - Dinas, Fouka, Schläpfer - JoP
*------------------------------------------------------------------------------*

*------------------------------------------------------------------------------*
* Table C1-C2
*------------------------------------------------------------------------------*



*------------------------------------------------------------------------------*
* Greece
*------------------------------------------------------------------------------*

use greece, clear
keep if T==0
sum age female primary secondary university publicemp privateemp retired selfemp farmer student homemaker unemployed inc1000 inc3000 inc5000 nd syriza pasok anel xa potami kke if asiaminor==0
sum age female primary secondary university	publicemp privateemp retired selfemp farmer student homemaker unemployed inc1000 inc3000 inc5000 nd syriza pasok anel xa potami kke if asiaminor==1
estpost ttest age female primary secondary university publicemp privateemp retired selfemp farmer student homemaker unemployed inc1000 inc3000 inc5000 nd syriza pasok anel xa potami kke, by(asiaminor) unequal
esttab .,b(a2) se(a2) star(+ 0.1 * 0.05 ** 0.01)

*------------------------------------------------------------------------------*
* Germany
*------------------------------------------------------------------------------*


use germany, clear
keep if control==1
sum age female income_ok realschule abitur university cdu17 spd17 afd17 fdp17 dielinke17 gruene17 if expellee==0
sum age female income_ok realschule abitur university cdu17 spd17 afd17 fdp17 dielinke17 gruene17 if expellee==1
estpost ttest age female income_ok realschule abitur university cdu17 spd17 afd17 fdp17 dielinke17 gruene17, by(expellee) unequal
esttab ., se star(* 0.1 ** 0.05 *** 0.01)

